import request from "@/utils/request"
export const getDebt = async (date: any, id: any) => {
    const urlData = await request.get(`/financialStatement/financialStatementFindAll?billingPeriod=${date}&fsType=${id}`)
    console.log(urlData);

    return urlData;
}
//科目
export const getSubject = async (data: any) => {
    const urlSub = await request.post('/generalLedger/findSubjectBalance', { data: data });
    return urlSub;
}
//项目
export const getProject = async (data: any) => {
    const urlProj = await request.post('/generalLedger/findProjectBalance', { data: data });
    return urlProj;
}
//明细
export const getDetail = async (data: any) => {
    const urlDetail = await request.post('/generalLedger/findDetailList', { data: data });
    return urlDetail;
}
//资产弹框数据
export const getDailog = async (date: any, id: any) => {
    const urlDai = await request.get(`/editFormula/editFormulaFindAll?date=${date}&fsId=${id}`);
    return urlDai;
}
//导出
export const educe = async () => {
    const Url = await request.get(`/financialStatement/financialStatementExport?fsType=1`,{responseType:'blob'})
    return Url;
}
//财务
export const finialData=async(data:any)=>{
    const UrlFinal=await request.post(`/generalLedger/findDetailList`,{data:data})
}